package com.shop.common.enums.pink;

import lombok.Getter;

/**
 * 收入类型
 */
@Getter
public enum JishouStatusEnum {

    //寄售状态0寄售中1提货 2 已完成（已转余额）

    INIT(0, "寄售中"),
    CHANGE_GET_GOOD(1, "寄售改提货"),
    FINISH(2, "已完成"),
    ;

    private int key;
    private String name;

    JishouStatusEnum(int key, String name) {
        this.key = key;
        this.name = name;
    }

    public static JishouStatusEnum val(int key) {
        for (JishouStatusEnum enumObj : JishouStatusEnum.values()) {
            if(enumObj.key == key) {
                return enumObj;
            }
        }
        return null;
    }
}
